package com.liwen.service.exception;

/**
 * @author: li.rui
 * @time: 2018-04-19 17:09
 * @description:
 */
public class BizException extends RuntimeException {
    private static final long serialVersionUID = -7743201974844978506L;
    private String code;
    private String message;

    /**
     * @param errorTpl @see
     */
    public BizException(String errorTpl) {

            this.code = "INV10001";
            this.message = errorTpl;

    }

    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
